package com.rs.game.player.dialogues;

import com.rs.game.player.Skills;

public class MediumXPLamp extends Dialogue {

	@Override
	public void start() {
		sendOptionsDialogue("Select a Skill", "Attack", "Strength", "Defence", "Ranged", "More...");
	}

	@Override
	public void run(int interfaceId, int componentId) {
		switch (stage) {
		case -1:
			switch (componentId) {
			case OPTION_1:
				player.getSkills().addXp(Skills.ATTACK, 10000);
				player.getInventory().deleteItem(23714, 1);
				player.getPackets().sendGameMessage("You have been granted great experience in Attack.");
				end();
				break;
			case OPTION_2:
				player.getSkills().addXp(Skills.STRENGTH, 10000);
				player.getInventory().deleteItem(23714, 1);
				player.getPackets().sendGameMessage("You have been granted great experience in Strength.");
				end();
				break;
			case OPTION_3:
				player.getSkills().addXp(Skills.DEFENCE, 10000);
				player.getInventory().deleteItem(23714, 1);
				player.getPackets().sendGameMessage("You have been granted great experience in Defence.");
				end();
				break;
			case OPTION_4:
				player.getSkills().addXp(Skills.RANGE, 10000);
				player.getInventory().deleteItem(23714, 1);
				player.getPackets().sendGameMessage("You have been granted great experience in Ranged.");
				end();
				break;
			case OPTION_5:
				sendOptionsDialogue("Select a Skill", "Prayer", "Magic", "Runecrafting", "Back...", "More...");
				stage = 0;
				break;
			}
			break;
		case 0:
			switch (componentId) {
			case OPTION_1:
				player.getSkills().addXp(Skills.PRAYER, 10000);
				player.getInventory().deleteItem(23714, 1);
				player.getPackets().sendGameMessage("You have been granted great experience in Prayer.");
				end();
				break;
			case OPTION_2:
				player.getSkills().addXp(Skills.MAGIC, 10000);
				player.getInventory().deleteItem(23714, 1);
				player.getPackets().sendGameMessage("You have been granted great experience in Magic.");
				end();
				break;
			case OPTION_3:
				player.getSkills().addXp(Skills.RUNECRAFTING, 10000);
				player.getInventory().deleteItem(23714, 1);
				player.getPackets().sendGameMessage("You have been granted great experience in Runecrafting.");
				end();
				break;
			case OPTION_4:
				sendOptionsDialogue("Select a Skill", "Attack", "Strength", "Defence", "Ranged", "More...");
				stage = -1;
				break;
			case OPTION_5:
				sendOptionsDialogue("Select a Skill", "Construction", "Dungeoneering", "Constitution", "Back...", "More...");
				stage = 1;
				break;
			}
			break;
		case 1:
			switch (componentId) {
			case OPTION_1:
				player.getSkills().addXp(Skills.CONSTRUCTION, 10000);
				player.getInventory().deleteItem(23714, 1);
				player.getPackets().sendGameMessage("You have been granted great experience in Construction.");
				end();
				break;
			case OPTION_2:
				player.getSkills().addXp(Skills.DUNGEONEERING, 10000);
				player.getInventory().deleteItem(23714, 1);
				player.getPackets().sendGameMessage("You have been granted great experience in Dungeoneering.");
				end();
				break;
			case OPTION_3:
				player.getSkills().addXp(Skills.HITPOINTS, 10000);
				player.getInventory().deleteItem(23714, 1);
				player.getPackets().sendGameMessage("You have been granted great experience in Constitution.");
				end();
				break;
			case OPTION_4:
				sendOptionsDialogue("Select a Skill", "Construction", "Dungeoneering", "Constitution", "Back...", "More...");
				stage = 0;
				break;
			case OPTION_5:
				sendOptionsDialogue("Select a Skill", "Agility", "Herblore", "Thieving", "Back...", "More...");
				stage = 2;
				break;
			}
			break;
		case 2:
			switch (componentId) {
			case OPTION_1:
				player.getSkills().addXp(Skills.AGILITY, 10000);
				player.getInventory().deleteItem(23714, 1);
				player.getPackets().sendGameMessage("You have been granted great experience in Agility.");
				end();
				break;
			case OPTION_2:
				player.getSkills().addXp(Skills.HERBLORE, 10000);
				player.getInventory().deleteItem(23714, 1);
				player.getPackets().sendGameMessage("You have been granted great experience in Herblore.");
				end();
				break;
			case OPTION_3:
				player.getSkills().addXp(Skills.THIEVING, 10000);
				player.getInventory().deleteItem(23714, 1);
				player.getPackets().sendGameMessage("You have been granted great experience in Thieving.");
				end();
				break;
			case OPTION_4:
				sendOptionsDialogue("Select a Skill", "Agility", "Herblore", "Thieving", "Back...", "More...");
				stage = 1;
				break;
			case OPTION_5:
				sendOptionsDialogue("Select a Skill", "Crafting", "Fletching", "Slayer", "Back...", "More...");
				stage = 3;
				break;
			}
			break;
		case 3:
			switch (componentId) {
			case OPTION_1:
				player.getSkills().addXp(Skills.CRAFTING, 10000);
				player.getInventory().deleteItem(23714, 1);
				player.getPackets().sendGameMessage("You have been granted great experience in Crafting.");
				end();
				break;
			case OPTION_2:
				player.getSkills().addXp(Skills.FLETCHING, 10000);
				player.getInventory().deleteItem(23714, 1);
				player.getPackets().sendGameMessage("You have been granted great experience in Fletching.");
				end();
				break;
			case OPTION_3:
				player.getSkills().addXp(Skills.SLAYER, 10000);
				player.getInventory().deleteItem(23714, 1);
				player.getPackets().sendGameMessage("You have been granted great experience in Slayer.");
				end();
				break;
			case OPTION_4:
				sendOptionsDialogue("Select a Skill", "Crafting", "Fletching", "Slayer", "Back...", "More...");
				stage = 2;
				break;
			case OPTION_5:
				sendOptionsDialogue("Select a Skill", "Hunter", "Mining", "Smithing", "Back...", "More...");
				stage = 4;
				break;
			}
			break;
		case 4:
			switch (componentId) {
			case OPTION_1:
				player.getSkills().addXp(Skills.HUNTER, 10000);
				player.getInventory().deleteItem(23714, 1);
				player.getPackets().sendGameMessage("You have been granted great experience in Hunter.");
				end();
				break;
			case OPTION_2:
				player.getSkills().addXp(Skills.MINING, 10000);
				player.getInventory().deleteItem(23714, 1);
				player.getPackets().sendGameMessage("You have been granted great experience in Mining.");
				end();
				break;
			case OPTION_3:
				player.getSkills().addXp(Skills.SMITHING, 10000);
				player.getInventory().deleteItem(23714, 1);
				player.getPackets().sendGameMessage("You have been granted great experience in Smithing.");
				end();
				break;
			case OPTION_4:
				sendOptionsDialogue("Select a Skill", "Hunter", "Mining", "Smithing", "Back...", "More...");
				stage = 3;
				break;
			case OPTION_5:
				sendOptionsDialogue("Select a Skill", "Fishing", "Cooking", "Firemaking", "Back...", "More...");
				stage = 5;
				break;
			}
			break;
		case 5:
			switch (componentId) {
			case OPTION_1:
				player.getSkills().addXp(Skills.FISHING, 10000);
				player.getInventory().deleteItem(23714, 1);
				player.getPackets().sendGameMessage("You have been granted great experience in Fishing.");
				end();
				break;
			case OPTION_2:
				player.getSkills().addXp(Skills.COOKING, 10000);
				player.getInventory().deleteItem(23714, 1);
				player.getPackets().sendGameMessage("You have been granted great experience in Cooking.");
				end();
				break;
			case OPTION_3:
				player.getSkills().addXp(Skills.FIREMAKING, 10000);
				player.getInventory().deleteItem(23714, 1);
				player.getPackets().sendGameMessage("You have been granted great experience in Firemaking.");
				end();
				break;
			case OPTION_4:
				sendOptionsDialogue("Select a Skill", "Fishing", "Cooking", "Firemaking", "Back...", "More...");
				stage = 4;
				break;
			case OPTION_5:
				sendOptionsDialogue("Select a Skill", "Woodcutting", "Farming", "Summoning", "Back...");
				stage = 6;
				break;
			}
			break;
		case 6:
			switch (componentId) {
			case OPTION_1:
				player.getSkills().addXp(Skills.WOODCUTTING, 10000);
				player.getInventory().deleteItem(23714, 1);
				player.getPackets().sendGameMessage("You have been granted great experience in Woodcutting.");
				end();
				break;
			case OPTION_2:
				player.getSkills().addXp(Skills.FARMING, 10000);
				player.getInventory().deleteItem(23714, 1);
				player.getPackets().sendGameMessage("You have been granted great experience in Farming.");
				end();
				break;
			case OPTION_3:
				player.getSkills().addXp(Skills.SUMMONING, 10000);
				player.getInventory().deleteItem(23714, 1);
				player.getPackets().sendGameMessage("You have been granted great experience in Summoning.");
				end();
				break;
			case OPTION_4:
				sendOptionsDialogue("Select a Skill", "Woodcutting", "Farming", "Summoning", "Back...");
				stage = 5;
				break;
			}
			break;
		}
	}

	@Override
	public void finish() {
		// TODO Auto-generated method stub
		
	}
}